package com.quasar.hpatient.bean.home_medicine;

import android.graphics.Color;

import lib.quasar.widget.calendar.CalendarModel;

public class CalendarDoseBean implements CalendarModel.SchemeModel {

    // private String inspection_date;
    private String dose_date;

    // private String diagnose_sign;
    private int warn_sign;
    private int status;

    @Override
    public String getKey() {
        return dose_date;

    }

    @Override
    public boolean isSignSymbol() {
        //return !TextUtils.isEmpty(warn_sign) && ("1".equals(warn_sign) || "0".equals(warn_sign));
        return true;
    }

    @Override
    public int getSignSymbolColor() {
        if (1 == warn_sign)
            return Color.parseColor("#ea5757");
        else
            return Color.parseColor("#13ad67");
    }

    @Override
    public boolean isSignText() {
        //return !TextUtils.isEmpty(diagnose_sign) && "1".equals(diagnose_sign);
        if (status == 0)
            return true;
        else
            return false;
//        return  true;
    }

    @Override
    public String getSignText() {
        return "未";
    }

    public boolean isNull() {
        return false;
    }

    public String getInspection_date() {
        return dose_date;
    }

    public void setInspection_date(String inspection_date) {
        this.dose_date = inspection_date;
    }

    public String getDiagnose_sign() {
        return "";
    }

    public void setDiagnose_sign(String diagnose_sign) {

    }

    public int getWarn_sign() {
        return warn_sign;
    }

    public void setWarn_sign(int warn_sign) {
        this.warn_sign = warn_sign;
    }
}
